import React from 'react';
import logo from './logo.svg';
import './App.css';

function App() {
  // 10.正确实现排序效果[2,1,4，3]=>[1,2,3,4];

  const arr:number[]=[2,1,4,3]
  arr.sort((a,b)=>a-b)
  console.log(arr);
  
  return (
    <div className="App">
      11111
    </div>
  );
}

export default App;
